#include <iostream>
using namespace std;

int main (void)
{
	int *pi = NULL;
	void *pv = pi; //ok 
	//pi = pv;//error

	pi = static_cast <int *>(pv);
	//编译时会直接报错
	//char c = static_cast <int> (pi);
	return 0;
}
